<?php
$file   = '../language/'.$language.'.txt';


$alllang=ListAllLang($file);

if($actPost=='save')
{
    $langs    = gpc_getStringArray('lang');
    backup();
    foreach($alllang as $name=>$vl)
    {
        if(!empty($langs[$name]))
        {            
            $alllang[$name] = $langs[$name];
        }
    }
    SaveLang($alllang,$file);
    Insert_Tracking("Change language in lang: ".$language);
    page_transfer("Save Language Success",$pagetr);
    exit;
}

?>